#pragma once

#include <QWidget>
#include <QDateTime>
#include "confirm.h"
#include "const.h"
#include "httpcommon.h"
#include "ui_adddiritem.h"
#include "log.h"

class AddDirItem : public QWidget
{
	Q_OBJECT

public:
	AddDirItem(QString id, QWidget *parent = Q_NULLPTR);
	~AddDirItem();
	public Q_SLOTS:
	void on_pbDelete_clicked();
	void on_leDirName_editingFinished();
Q_SIGNALS:
	void deleteAddDirSignal(QString);
	void addDirSignal(QString, QString);
private:
	void initWidget();
private:
	Ui::AddDirItem ui;
	QString m_time;
	QString m_id;
};
